import request from '@/utils/request'

// 查询【节假日配置】列表
export function listOaVacationHoliday(query) {
  return request({
    url: '/vacation/oaVacationHoliday/list',
    method: 'get',
    params: query
  })
}

// 查询【节假日配置】详细
export function getOaVacationHoliday(id) {
  return request({
    url: '/vacation/oaVacationHoliday/' + id,
    method: 'get'
  })
}

// 保存【节假日配置】
export function saveOaVacationHoliday(data) {
  return request({
    url: '/vacation/oaVacationHoliday/save',
    method: 'post',
    data: data
  })
}

// 删除【节假日配置】
export function delOaVacationHoliday(id) {
  return request({
    url: '/vacation/oaVacationHoliday/' + id,
    method: 'delete'
  })
}

// 导出【节假日配置】
export function exportOaVacationHoliday(query) {
  return request({
    url: '/vacation/oaVacationHoliday/export',
    method: 'get',
    params: query
  })
}
